﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NerdDinner.Models.Dinner>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Upcoming Dinners
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Upcoming Dinners</h2>
<ul>
<% foreach (var dinner in Model) { %>
<li>
<%:Html.ActionLink(dinner.Title,"Details",new {id=dinner.DinnerID}) %>
<%: dinner.Title %>

on
<%: dinner.EventDate.ToShortDateString()%>
@
<%: dinner.EventDate.ToShortTimeString()%>
</li>
<% } %>
</ul>

</asp:Content>

